import pygame

import constants

class TerrainTile:
  def __init__(self,pos,image):
    self.rect = pygame.Rect(pos,(1,1))
    
    self.rect.left   *= constants.TILE_SIZE[0]
    self.rect.top    *= constants.TILE_SIZE[1]
    self.rect.width  *= constants.TILE_SIZE[0]
    self.rect.height *= constants.TILE_SIZE[1]
    
    self.image = image
  
  def get_blit_info(self):
    return self.image,pygame.Rect(self.rect)
  
